<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<load href="__JS__/menu.js" />
		<load href="__JS__/leftmenubar.js" />
		<load href="__CSS__/header.css" />
		<load href="__CSS__/footer.css" />
		<link rel="stylesheet" href="__JS__/kindeditor/themes/default/default.css" />
		<link rel="stylesheet" href="__JS__/kindeditor/plugins/code/prettify.css" />
		<script charset="utf-8" src="__JS__/kindeditor/kindeditor.js"></script>
		<script charset="utf-8" src="__JS__/kindeditor/lang/zh_CN.js"></script>
		<script charset="utf-8" src="__JS__/kindeditor/plugins/code/prettify.js"></script> 
		<script>
			KindEditor.ready(function(K) {
				var editor1 = K.create('textarea[name="text"]', {
					cssPath : '__JS__/kindeditor/plugins/code/prettify.css',
					uploadJson : '__JS__/kindeditor/php/upload_json.php?no={$no}',
					fileManagerJson : '__JS__/kindeditor/php/file_manager_json.php?no={$no}',
					allowFileManager : true,
					afterCreate : function() {
						var self = this;
						K.ctrl(document, 13, function() {
							self.sync();
							K('form[name=discuss]')[0].submit();
						});
						K.ctrl(self.edit.doc, 13, function() {
							self.sync();
							K('form[name=discuss]')[0].submit();
						});
					}
				});
				prettyPrint();
			});
		</script>
		<load href= "__JS__/jshelper.js" /> 
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
       	<script>
		  $(function(){
           $('#form1').ajaxForm({
				//beforeSubmit:  function(){alert("before");},  // pre-submit callback
				success:       complete,  // post-submit callback
				error:function(){alert("error");},
				dataType: 'json'
			});
           
			function complete(data){
			if (data.status==1)
			{
				window.location='__APP__/user/workdetail/id/{$vo.classid}/p/{$vo.saveid}';
             }else{
				$('#result').html(data.info).show();
             }
		}
	});
	</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>评语</title>
</head>
<body>
<layout name="Auth:header" />
 <div class="nowposition">
		当前位置：
		<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
		<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
		<a href='__URL__/classdetail' class="nowpositionhref">教学班管理</a>>
		<a href='__URL__/classfile/id/{$classid}' class="nowpositionhref">学生管理</a>>
		<a href="" class="nowpositionhref" >作业管理</a>>
		<a href=""  class="nowpositionhref">点评</a>
	</div>
<layout name="Auth:leftmenu" />
<div class="remark">
 	<form id='form1' name="discuss" method="post" action="__URL__/workremark" >
		<div id='result' style="color:red; font-size:12px;"></div>
		<input type='hidden' name='id' value={$vo.id}>
		<input type='hidden' name='name' value={$vo.name}>
		<input type='hidden' name='no' value={$vo.no}>
		<input type='hidden' name='time' value={$vo.time}>
		<input type='hidden' name='path' value={$vo.path}>
		<input type='hidden' name='size' value={$vo.size}>
		<input type='hidden' name='savename' value={$vo.savename}>
		<input type='hidden' name='classid' value={$vo.classid}>
		<input type='hidden' name='nname' value={$vo.nname}>
		<input type='hidden' name='saveid' value={$vo.saveid}>
		打分
		<input type='text' name='grade' value={$vo.grade}>
		<textarea name="text" style="width:670px;hight:1000px;">{$vo.text}</textarea>
		<br>
		<div align="right" style="width:670px">
		<input name="submit" type="submit" value="发表" style="width:80px;" >
		</div>
    </form>
</div>
</body>
</html>